package com.tledu.production.service.system.impl;

import com.tledu.production.mapper.system.SysResMapper;
import com.tledu.production.model.system.SysRes;
import com.tledu.production.service.system.ISysResService;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author Antg
 * @date 2021/8/18  14:23
 */
@Service
@AllArgsConstructor
public class SysResServiceImpl implements ISysResService {
    private SysResMapper sysResMapper;

    @Override
    public List<SysRes> findAll() {
        return sysResMapper.findAll();
    }

    @Override
    public SysRes findById(Integer id) {
        return sysResMapper.findById(id);
    }

    @Override
    public List<SysRes> findByIds(Integer[] ids) {
        return sysResMapper.findByIds(ids);
    }

    @Override
    public List<SysRes> search(String type, String searchText) {
        return sysResMapper.search(type, searchText);
    }

    @Override
    public int add(SysRes sysRes) {
        return sysResMapper.add(sysRes);
    }

    @Override
    public int edit(SysRes sysRes) {
        return sysResMapper.edit(sysRes);
    }

    @Override
    public int del(Integer[] ids) {
        return sysResMapper.del(ids);
    }
}
